

var showEcharts = function(btn){
	var trs = $(btn).closest('table').prevUntil('h3').nextUntil('h3').find('tr[data-cover]');
	if(!check4Submit(trs))
		return;
	var cover = $(btn).closest('tr').data('cover');
	console.log(cover)
	var polBase = $(btn).closest('table').prevAll('.title:eq(0)').data('polbase');
	polBase.quoBase = quoObj.quoBase;
	cover.polBase = polBase;
//var sj= {"coverCode":"CJSXUL01","cp1Id":3,"polBase":{"polId":1,"quoBase":{"quoId":2611759,"sign":"17579E6C77058A87CE8C5A44CFC1DD0E"}}}
	showDiv1('open5');

	
function showDiv1(id,e){
		$.openPopupLayer({
			  name: id,
			  target: id
		  }); 
		
		$("#popupLayerScreenLocker").click(function(){
			$.closePopupLayer(id);
			$(".divtip").remove();
			$(".exp").remove();
			$(".echarbtn").remove();
			$("#open5 .open-body").empty();
		})
		
		//弹出层tab左右滑动
		
		if(id == "agn-menu") {
			openAgnMenu();
		}
	    myScroll.refresh(); 	
	
if(cover.coverCode=="HQZX01"){
	   var html="";
	    	
	    	switch(cover.coverPlan)
	    	{
	    	case "1":						
	    		html+='<table class="order_interests">';		
	    		html+='<tr><th>保险计划</th><th>计划一</th></tr>';
	    		html+='<tr><td width="50%">医院范围</td><td>大中华（中国大陆，港，澳，台）之外</td></tr>';
	    		html+='<tr class="bg_blue"><td>基本保险金额</td><td>300万</td></tr>';
	    		html+='<tr><td>医疗费用</td><td>不设单项最高限额</td></tr>';
	    		html+='<tr class="bg_blue"><td>交通费用(被保险人和一名陪同人员)</td><td>最高6万</td></tr>';
	    		html+='<tr><td>陪同人员住宿费用</td><td>3/4星酒店 最高6万</td></tr>';
	    		html+='<tr class="bg_blue"><td>每日住院津贴</td><td>无此项责任</td></tr>';
	    		html += '<tr><td>24*7翻译服务</td><td>包含</td></tr>';
	    		html += '<tr class="bg_blue"><td>遗体遣送回国 </td><td>包含</td></tr>';
	    		html += '<tr><td>国内药物保障</td><td>住院时间超过3晚的境外治疗，回国后购买用药报销 最高300,000元</td></tr>';
	    		html += '<tr class="bg_blue"><td>返回津贴</td><td>无此项责任</td></tr>';
	    		html += '</table>';
	    		$("#open5 .open-body").empty()
	    		$("#open5 .open-body").append(html);
	    		break;
	    	case "2":						
	    		html+='<table class="order_interests">';		
	    		html+='<tr><th>保险计划</th><th>计划二</th></tr>';
	    		html+='<tr><td width="50%">医院范围</td><td>大中华（中国大陆，港，澳，台）之外</td></tr>';
	    		html+='<tr class="bg_blue"><td>基本保险金额</td><td>600万</td></tr>';
	    		html+='<tr><td>医疗费用</td><td>不设单项最高限额</td></tr>';
	    		html+='<tr class="bg_blue"><td>交通费用(被保险人和一名陪同人员)</td><td>不设单项最高限额</td></tr>';
	    		html+='<tr><td>陪同人员住宿费用</td><td>3/4星酒店不设单项最高限额</td></tr>';
	    		html+='<tr class="bg_blue"><td>每日住院津贴</td><td>600元/天*60</td></tr>';
	    		html += '<tr><td>24*7翻译服务</td><td>包含</td></tr>';
	    		html += '<tr class="bg_blue"><td>遗体遣送回国 </td><td>包含</td></tr>';
	    		html += '<tr><td>国内药物保障</td><td>住院时间超过3晚的境外治疗，回国后购买用药报销 最高300,000元</td></tr>';
	    		html += '<tr class="bg_blue"><td>返回津贴</td><td>无此项责任</td></tr>';
	    		html += '</table>';
	            $("#open5 .open-body").empty()
	    		$("#open5 .open-body").append(html);
	    		break;
	    	case "3":
	    		html+='<table class="order_interests">';		
	    		html+='<tr><th>保险计划</th><th>计划三</th></tr>';
	    		html+='<tr><td width="50%">医院范围</td><td>大中华（中国大陆，港，澳，台）之外</td></tr>';
	    		html+='<tr class="bg_blue"><td>基本保险金额</td><td>1200万</td></tr>';
	    		html+='<tr><td>医疗费用</td><td>不设单项最高限额</td></tr>';
	    		html+='<tr class="bg_blue"><td>交通费用(被保险人和一名陪同人员)</td><td>不设单项最高限额</td></tr>';
	    		html+='<tr><td>陪同人员住宿费用</td><td>5星酒店 不设单项最高限额</td></tr>';
	    		html+='<tr class="bg_blue"><td>每日住院津贴</td><td>1200元/天*60</td></tr>';
	    		html += '<tr><td>24*7翻译服务</td><td>包含</td></tr>';
	    		html += '<tr class="bg_blue"><td>遗体遣送回国 </td><td>包含</td></tr>';
	    		html += '<tr><td>国内药物保障</td><td>住院时间超过3晚的境外治疗，回国后购买用药报销 最高300,000元</td></tr>';
	    		html += '<tr class="bg_blue"><td>返回津贴</td><td>120,000元 终身一次</td></tr>';
	    		html += '</table>';
	            $("#open5 .open-body").empty()
	    		$("#open5 .open-body").append(html);
	    		break;
	    	}
	    	
	    }
else{
	    
padMarketing.ajaxNormal(
		'/pad_marketing/main/quoCoverBenefits.action',
		cover,
		function(data){
			//console.log(data)
			var ljxjhlM=[];
			var ljxjhlH=[];
			var ljxjhlL=[];		
			var ljzenjhlM=[];
			var ljzenjhlH=[];
			var ljzenjhlL=[];		
			var ljlj=[];
			
			var sumAssured =[];//保额
			var age=[];//年龄
			var age2=[];
			var age3=[];
			var length=[];//长度
			var annPrem=[];//年度保费
			var annuity=[];//年金
			var annuityL=[];//
			var annuityH=[];//
			var cashValue=[];//现金价值
			var cashValueL=[];//
			var cashValueH=[];//
			var deathBenefit=[];//死亡责任金
			var deathL=[];
			var deathM=[];
			var deathH=[];
			var surviveBenefit=[];//生存金
			var incdivL=[];//增额红利
			var incdivM=[];//增额红利		
			var incdivH=[];//
			var finDivL=[]//
			var finDivM=[]//终了红利
			var finDivH=[]//		
			var matureH=[]//满期利益
			var accountValueL=[];//账户价值
			var accountValueM=[];
			var accountValueH=[];
			var accSurviveBenefit =[];//累积生存金
			var dd=[];//重大疾病
			var esci=[];//轻症
			for(i=0;i<data.length;i++)
				{
				sumAssured.push(data[i].sumAssured);
				age.push("年龄："+data[i].age);
				age2.push(data[i].age);
				age3.push("年龄："+data[i].age);
				length.push(i+1);					
				//deathBenefit.push(data[i].deathBenefit);
				deathL.push((data[i].deathBnftLow).toFixed(2));
				deathM.push((data[i].deathBnftMid).toFixed(2));
				deathH.push((data[i].deathBnftHigh).toFixed(2));				
				surviveBenefit.push((data[i].surviveBenefit).toFixed(2));				
				incdivL.push((data[i].incDividendLow).toFixed(2));
				incdivM.push((data[i].incDividendMid).toFixed(2));
				incdivH.push((data[i].incDividendHigh).toFixed(2))
				finDivL.push((data[i].finDividendLow).toFixed(2));
				finDivM.push((data[i].finDividendMid).toFixed(2));
				finDivH.push((data[i].finDividendHigh).toFixed(2));				
				//accSurviveBenefit.push((data[i].accSurviveBenefit).toFixed(2));
				/*dd.push((data[i].dd).toFixed(2));
				esci.push((data[i].esci).toFixed(2));*/
				}
			$(document).on("click","#closeechars",function(){ 	
				$(".divtip").remove();
				$(".exp").remove();
				$(".echarbtn").remove();
				$("#open5 .open-body").empty();
			})
			
			$(document).on("touchstart",".manqiimg",function(){
				$(".manqi").toggle();
			})
			//点击根据产品代码填数据并画图表
//			$(document).on("click",".echarspro",function(){
//				var code=JSON.parse($(this).closest('tr').attr("data-cover"));
				switch(cover.coverCode)
				{
				//安康永泰
				case "AKYT01" :
					$("#open5 .open-body").empty()
					$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
					
					for(i=0;i<data.length;i++)
					{
						dd.push((data[i].dd).toFixed(2));
						esci.push((data[i].esci).toFixed(2));				
					}
					dd.length=105-age2[0]+1;
					esci.length=105-age2[0]+1;					
					age3.pop();					
					age3.push({value:age[age.length-1],textStyle:{color:"#5c5c5c",}});	
					var myChart = echarts.init(document.getElementById('echars'));
					option = {
						    title: {text: '安联安康永泰终身重大疾病保险',left: 'center'},
						    tooltip: {position:['25%','30%'],trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
						    legend: {left:'center',width:"70%",height:"90px",bottom:"5%", 
						    	data:[	       										
										{name:'身故/全残保险金、首次重大疾病保险金、生命尊严提前给付金',icon:'rect'},
										{name:'轻症重疾保险金',icon:'rect'},
								],			             
						    },
						    xAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:5,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:false,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
						    },
						    grid: {
						    	left: '6%',right: '8%',bottom: '15%',top:"25%",containLabel: true
						    },
						    yAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
						    },
						    series: [
								{name: '身故/全残保险金、首次重大疾病保险金、生命尊严提前给付金',type: 'line',data: dd,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}}},
								{name: '轻症重疾保险金',type: 'line',data: esci,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}}},
							],
						    animation:false,
						};
					myChart.setOption(option,true);
					
					var html='';
					html+="<div class='divtip'>";
					html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";	
					html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
					//html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
					html+="<p style='position:absolute;left:8%;bottom:18%;font-size:12px'>"+age[0]+"</p>";					
					$("#echars").after(html);	
					break;
				//安康永颐
				case "AKYY01" :
					$("#open5 .open-body").empty()
					$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
					
					for(i=0;i<data.length;i++)
					{
						deathBenefit.push((data[i].deathBenefit).toFixed(2));
						dd.push((data[i].dd).toFixed(2));
						esci.push((data[i].esci).toFixed(2));
					}
					dd.length=105-age2[0]+1;
					esci.length=105-age2[0]+1;					
					age3.pop();					
					age3.push({value:age[age.length-1],textStyle:{color:"#5c5c5c",}});	
					var myChart = echarts.init(document.getElementById('echars'));
					option = {
						    title: {text: '安康永颐终身重大疾病保险',left: 'center'},
						    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
						    legend: {left:'center',width:"70%",height:"90px",bottom:"5%", 
						    	data:[	       										
											{name:'身故保险金',icon:'rect'},
											{name:'轻症重疾保险金',icon:'rect'},
											{name:'全残保险金、首次重大疾病保险金、生命尊严提前给付金',icon:'rect'},
								],			             
						    },
						    xAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:5,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:false,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
						    },
						    grid: {
						    	left: '6%',right: '8%',bottom: '15%',top:"25%",containLabel: true
						    },
						    yAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
						    },
						    series: [
								{name: '身故保险金',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}}},
								{name: '轻症重疾保险金',type: 'line',data: esci,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}}},
								{name: '全残保险金、首次重大疾病保险金、生命尊严提前给付金',type: 'line',data: dd,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}}},							
							],
						    animation:false,
						};
					myChart.setOption(option,true);
					
					var html='';
					html+="<div class='divtip'>";
					html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";	
					html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
					//html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>";
					html+="<p style='position:absolute;left:8%;bottom:18%;font-size:12px'>"+age[0]+"</p>";					
					$("#echars").after(html);							
					break;	
				//安康长泰A
				case "AKCTA01" :
					$("#open5 .open-body").empty()
					$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
					
					for(i=0;i<data.length;i++)
					{
						deathBenefit.push((data[i].deathBenefit).toFixed(2));
						dd.push((data[i].dd).toFixed(2));
						esci.push((data[i].esci).toFixed(2));
					}
					dd.length=105-age2[0]+1;
					esci.length=105-age2[0]+1;					
					age3.pop();					
					age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
					var myChart = echarts.init(document.getElementById('echars'));
					option = {
						    title: {text: '安康长泰A长期重大疾病保险',left: 'center'},
						    tooltip: {position:['25%','30%'],trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
						    legend: {left:'center',width:"70%",height:"90px",bottom:"5%", 
						    	data:[	       										
											{name:'身故保险金',icon:'rect'},
											{name:'轻症重疾保险金',icon:'rect'},
											{name:'全残保险金、首次重大疾病保险金、生命尊严提前给付金',icon:'rect'},
								],			             
						    },
						    xAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:5,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
						    },
						    grid: {
						    	left: '6%',right: '8%',bottom: '15%',top:"25%",containLabel: true
						    },
						    yAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
						    },
						    series: [
								{name: '身故保险金',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}}},
								{name: '轻症重疾保险金',type: 'line',data: esci,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}}},
								{name: '全残保险金、首次重大疾病保险金、生命尊严提前给付金',type: 'line',data: dd,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}}},							
							],
						    animation:false,
						};
					myChart.setOption(option,true);
					
					var html='';
					html+="<div class='divtip'>";
					html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";	
					html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
					//html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
					html+="<p style='position:absolute;left:8%;bottom:18%;font-size:12px'>"+age[0]+"</p>";					
					$("#echars").after(html);	
					break;
				//安康长泰B
				case "AKCTB01" :	
					$("#open5 .open-body").empty()
					$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
					
					for(i=0;i<data.length;i++)
					{
						deathBenefit.push((data[i].deathBenefit).toFixed(2));
						dd.push((data[i].dd).toFixed(2));
						esci.push((data[i].esci).toFixed(2));
					}
					dd.length=105-age2[0]+1;
					esci.length=105-age2[0]+1;					
					age3.pop();					
					age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
					var myChart = echarts.init(document.getElementById('echars'));
					option = {
						    title: {text: '安康长泰B长期重大疾病保险',left: 'center'},
						    tooltip: {position:['25%','30%'],trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
						    legend: {left:'center',width:"70%",height:"90px",bottom:"5%", 
						    	data:[	       										
											{name:'身故保险金',icon:'rect'},
											{name:'轻症重疾保险金',icon:'rect'},
											{name:'全残保险金、首次重大疾病保险金、生命尊严提前给付金',icon:'rect'},
								],			             
						    },
						    xAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:5,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
						    },
						    grid: {
						    	left: '6%',right: '8%',bottom: '15%',top:"25%",containLabel: true
						    },
						    yAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
						    },
						    series: [
								{name: '身故保险金',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}}},
								{name: '轻症重疾保险金',type: 'line',data: esci,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}}},
								{name: '全残保险金、首次重大疾病保险金、生命尊严提前给付金',type: 'line',data: dd,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}}},							
							],
						    animation:false,
						};
					myChart.setOption(option,true);
					
					var html='';
					html+="<div class='divtip'>";
					html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";	
					html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
					//html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
					html+="<p style='position:absolute;left:8%;bottom:18%;font-size:12px'>"+age[0]+"</p>";					
					$("#echars").after(html);	
					break;
				//安康福至
				case "AKFZB01" :
					$("#open5 .open-body").empty()
					$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
					
					for(i=0;i<data.length;i++)
					{
						dd.push((data[i].dd).toFixed(2));
						esci.push((data[i].esci).toFixed(2));
					}
					dd.length=105-age2[0]+1;
					esci.length=105-age2[0]+1;					
					age3.pop();					
					age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
					var myChart = echarts.init(document.getElementById('echars'));
					option = {
						    title: {text: '安联安康福至两全保险',left: 'center'},
						    tooltip: {position:['25%','30%'],trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
						    legend: {left:'center',width:"70%",height:"90px",bottom:"5%", 
						    	data:[	       										
										{name:'身故/全残保险金、首次重大疾病保险金、生命尊严提前给付金',icon:'rect'},
										{name:'轻症重疾保险金',icon:'rect'},
								],			             
						    },
						    xAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:5,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
						    },
						    grid: {
						    	left: '6%',right: '8%',bottom: '15%',top:"25%",containLabel: true
						    },
						    yAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
						    },
						    series: [
								{name: '身故/全残保险金、首次重大疾病保险金、生命尊严提前给付金',type: 'line',data: dd,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}}},
								{name: '轻症重疾保险金',type: 'line',data: esci,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}}},
							],
						    animation:false,
						};
					myChart.setOption(option,true);
					
					var html='';
					html+="<div class='divtip'>";
					html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";	
					html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
					//html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
					html+="<p style='position:absolute;left:8%;bottom:18%;font-size:12px'>"+age[0]+"</p>";					
					$("#echars").after(html);	
					break;
				//超级随心两全
				case "CJSX01" :
					$("#open5 .open-body").empty()
					$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
					
					for(i=0;i<data.length;i++)
					{
						deathBenefit.push((data[i].deathBenefit).toFixed(2));
					}
					deathBenefit.length=105-age2[0]+1;
					incdivM.length=105-age2[0]+1;	
					incdivL.length=105-age2[0]+1;	
					incdivH.length=105-age2[0]+1;
					ljxjhlM.length=105-age2[0]+1;
					ljxjhlL.length=105-age2[0]+1;
					ljxjhlH.length=105-age2[0]+1;
					ljxjhlM[0]=	incdivM[0]+0*1.03;
					ljxjhlL[0]=	incdivL[0]+0*1.03;
					ljxjhlH[0]=	incdivH[0]+0*1.03;
					for(var j=1;j<age2.length;j++){						
						//累计现金红利
						ljxjhlM[j]=(parseFloat(incdivM[j])+ljxjhlM[j-1]*1.03).toFixed(2);
						ljxjhlL[j]=(parseFloat(incdivL[j])+ljxjhlL[j-1]*1.03).toFixed(2); 
						ljxjhlH[j]=(parseFloat(incdivH[j])+ljxjhlH[j-1]*1.03).toFixed(2);				
					}					
					age3.pop();
					age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});
					
					var myChart = echarts.init(document.getElementById('echars'));
					option = {
						    title: {text: '安联超级随心两全保险（分红型）',left: 'center'},
						    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
						    legend: {left:'center',width:"60%",height:"90px",bottom:'9%', 
						    	data:[	
										{name:'身故给付',icon:'rect'},
										{name:'当年度现金红利',icon:'rect'},
										{name:'累计现金红利',icon:'rect'},
							    ],			             
						    },
						    xAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:15,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
						    },
						    grid: {
						    	left: '6%',right: '8%',bottom: '15%',top:'25%',containLabel: true
						    },
						    yAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
						    },
						    series: [
								{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}},},
						        {name: '当年度现金红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}},},
						        {name: '累计现金红利',type: 'line',data: ljxjhlM,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}},},			        
						    ],
						    animation:false,
						};
					myChart.setOption(option,true);
					var html='';
					/*if(age2[age2.length-1]>=80)
					{
						html+="<img style='position:absolute;left:"+(age2[age2.length-1]-age2[0]+15)+"%;top:44%;' width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;position:absolute;left:"+(age2[age2.length-1]-age2[0]+14)+"%;top:60%;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p>";
					}
					if(age2[age2.length-1]<80)
					{
						html+="<img style='position:absolute;left:"+(age2[age2.length-1]-age2[0]+12)+"%;top:44%;' width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;position:absolute;left:"+(age2[age2.length-1]-age2[0]+10)+"%;top:60%;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p>";
					}*/
					if(age2[0]<20)
					{
						if(age2[age2.length-1]<=10)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-28)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] > 10 && age2[age2.length-1]<=20)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-23)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] > 20 && age2[age2.length-1]<40)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-20)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 40 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-12)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=20 && age2[0]<30)
					{	
						if( age2[age2.length-1] > 20 && age2[age2.length-1]<50)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-10)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 50 && age2[age2.length-1]<70)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-9)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 70 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=30 && age2[0]<40)
					{	
						if( age2[age2.length-1] > 30 && age2[age2.length-1]<50)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 50 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=40 && age2[0]<50)
					{	
						if( age2[age2.length-1] > 40 && age2[age2.length-1]<70)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+8)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 70 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=50 && age2[0]<60)
					{	
						if( age2[age2.length-1] > 50 && age2[age2.length-1]<70)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+15)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 70 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+7)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=60 && age2[0]<70)
					{	
						if( age2[age2.length-1] > 60 && age2[age2.length-1]<80)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+18)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 80 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+14)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1] >= 90 && age2[age2.length-1]<95)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1] >= 95)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=70 && age2[0]<80)
					{	
						if( age2[age2.length-1] > 70 && age2[age2.length-1]<80)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+30)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 80 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+23)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 90 && age2[age2.length-1]<100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+16)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}					
						if(age2[age2.length-1] >= 100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=80 && age2[0]<90)
					{	
						if( age2[age2.length-1] > 80 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+40)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}						
						if( age2[age2.length-1] >= 90 && age2[age2.length-1] < 95)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+24)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}					
						if(age2[age2.length-1] >= 95 && age2[age2.length-1]<100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+((105-age2[age2.length-1])/(105-age2[0])*100-10)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1] >= 100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					
					if(age2[0]>=90)
					{
						if( age2[age2.length-1] > 90 && age2[age2.length-1]<=100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+((105-age2[age2.length-1])/(105-age2[0])*100-18)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}						
						
						if(age2[age2.length-1] > 100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					
					if(age2[age2.length-1]>102)
					{
						var option = myChart.getOption();
						option.xAxis[0].axisLabel.interval = age2.length-1;
						//console.log(option);
						myChart.setOption(option,true); 
					}
					
					html+="<div class='divtip'><p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";					
					html+="<p style='position:absolute;left:8%;bottom:18%;font-size:12px'>"+age[0]+"</p>";
					html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
					html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
					html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
					
					$("#echars").after(html);
			
					$("#high").click(function(){
						$("#high").addClass("radio_yes").removeClass("radio_no");
						$("#in").removeClass("radio_yes").addClass("radio_no");
						$("#low").removeClass("radio_yes").addClass("radio_no");				
						var option = myChart.getOption();
						option.series[1].data = incdivH;
					    option.series[2].data = ljxjhlH;
					    myChart.setOption(option,true);  					    
					})		
					$("#low").click(function(){
						$("#low").addClass("radio_yes").removeClass("radio_no");
						$("#in").removeClass("radio_yes").addClass("radio_no");
						$("#high").removeClass("radio_yes").addClass("radio_no");	
						var option = myChart.getOption();
						option.series[1].data=incdivL;		
						option.series[2].data=ljxjhlL;		
						myChart.setOption(option,true);						
					})
					$("#in").click(function(){
						$("#in").addClass("radio_yes").removeClass("radio_no");
						$("#high").removeClass("radio_yes").addClass("radio_no");
						$("#low").removeClass("radio_yes").addClass("radio_no");	
						var option = myChart.getOption();
						option.series[1].data=incdivM;
						option.series[2].data=ljxjhlM;
						myChart.setOption(option,true);	
						
					})	
					break;
					//超级随心两全 C款
				case "CJSX03" :
					console.log(data)
					var cash=[];
					$("#open5 .open-body").empty()
					$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
					for(i=0;i<data.length;i++)
					{
						deathBenefit.push((data[i].deathBenefit).toFixed(2));
						cash.push((data[i].cashValue).toFixed(2));
						accSurviveBenefit.push((data[i].accSurviveBenefit).toFixed(2));
					}
					deathBenefit.length=105-age2[0]+1;
					incdivM.length=105-age2[0]+1;	
					incdivL.length=105-age2[0]+1;	
					incdivH.length=105-age2[0]+1;
					ljxjhlM.length=105-age2[0]+1;
					ljxjhlL.length=105-age2[0]+1;
					ljxjhlH.length=105-age2[0]+1;
					ljlj.length=105-age2[0];
					ljxjhlM[0]=	incdivM[0]+0*1.03;
					ljxjhlL[0]=	incdivL[0]+0*1.03;
					ljxjhlH[0]=	incdivH[0]+0*1.03;
					ljlj[0]=surviveBenefit[0]+0*1.03;
					for(var j=1;j<age2.length;j++){						
						//累计现金红利
						ljxjhlM[j]=(parseFloat(incdivM[j])+ljxjhlM[j-1]*1.03).toFixed(2);
						ljxjhlL[j]=(parseFloat(incdivL[j])+ljxjhlL[j-1]*1.03).toFixed(2);
						ljxjhlH[j]=(parseFloat(incdivH[j])+ljxjhlH[j-1]*1.03).toFixed(2);
						//累积年金(含累积生息)
						ljlj[j]=(parseFloat(surviveBenefit[j])+ljlj[j-1]*1.03).toFixed(2);
					}						
					age3.pop();
					age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});
					
					var myChart = echarts.init(document.getElementById('echars'));
					option = {
						    title: {text: '安联超级随心两全保险（分红型）（C款）利益演示表',left: 'center'},
						    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
						    legend: {left:'center',width:"60%",height:"90px",bottom:'8%', 
						    	data:[	
										{name:'身故给付',icon:'rect'},
										{name:'现金价值',icon:'rect'},
										{name:'生存金',icon:'rect'},
										{name:'累积生存金给付',icon:'rect'},
										{name:'当年度现金红利',icon:'rect'},
										{name:'累计现金红利',icon:'rect'},
							    ],			             
						    },
						    xAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:15,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
						    },
						    grid: {
						    	left: '6%',right: '8%',bottom: '20%',top:'25%',containLabel: true
						    },
						    yAxis: {
						    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
						    },
						    series: [//#019be1  #ff5400  #66be1e  #f3313c #eae200  #004b98
								{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}},},
								{name: '现金价值',type: 'line',data: cash,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}},},
								{name: '生存金',type: 'line',data: surviveBenefit,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}},},
								{name: '累积生存金给付',type: 'line',data: accSurviveBenefit,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3}},},
								{name: '当年度现金红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#eae200'}},lineStyle:{normal:{color:'#eae200',width:3}},},
						        {name: '累计现金红利',type: 'line',data: ljxjhlM,itemStyle:{normal:{color:'#004b98'}},lineStyle:{normal:{color:'#004b98',width:3}},},			        
						    ],
						    animation:false,
						};
					myChart.setOption(option,true);
					var html='';
					
					if(age2[0]<20)
					{
						if(age2[age2.length-1]<=10)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-28)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] > 10 && age2[age2.length-1]<=20)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-23)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] > 20 && age2[age2.length-1]<40)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-20)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 40 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-12)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=20 && age2[0]<30)
					{	
						if( age2[age2.length-1] > 20 && age2[age2.length-1]<50)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-10)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 50 && age2[age2.length-1]<70)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-9)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 70 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=30 && age2[0]<40)
					{	
						if( age2[age2.length-1] > 30 && age2[age2.length-1]<50)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 50 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=40 && age2[0]<50)
					{	
						if( age2[age2.length-1] > 40 && age2[age2.length-1]<70)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+8)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 70 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]-3)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=50 && age2[0]<60)
					{	
						if( age2[age2.length-1] > 50 && age2[age2.length-1]<70)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+15)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 70 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+7)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1]>=90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=60 && age2[0]<70)
					{	
						if( age2[age2.length-1] > 60 && age2[age2.length-1]<80)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+18)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 80 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+14)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						
						if(age2[age2.length-1] >= 90 && age2[age2.length-1]<95)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+4)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1] >= 95)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=70 && age2[0]<80)
					{	
						if( age2[age2.length-1] > 70 && age2[age2.length-1]<80)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+30)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 80 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+23)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if( age2[age2.length-1] >= 90 && age2[age2.length-1]<100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+16)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}					
						if(age2[age2.length-1] >= 100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					if(age2[0]>=80 && age2[0]<90)
					{	
						if( age2[age2.length-1] > 80 && age2[age2.length-1]<90)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+40)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}						
						if( age2[age2.length-1] >= 90 && age2[age2.length-1] < 95)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1]+24)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}					
						if(age2[age2.length-1] >= 95 && age2[age2.length-1]<100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+((105-age2[age2.length-1])/(105-age2[0])*100-10)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
						if(age2[age2.length-1] >= 100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					
					if(age2[0]>=90)
					{
						if( age2[age2.length-1] > 90 && age2[age2.length-1]<=100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+((105-age2[age2.length-1])/(105-age2[0])*100-18)+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}						
						
						if(age2[age2.length-1] > 100)
						{
							html+="<div class='manqiimg' style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;width:125px;text-align:center'><img width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p></div>";
						}
					}
					
					if(age2[age2.length-1]>102)
					{
						var option = myChart.getOption();
						option.xAxis[0].axisLabel.interval = age2.length-1;
						//console.log(option);
						myChart.setOption(option,true); 
					}
						
					//html+="<img style='position:absolute;right:"+(105-age2[age2.length-1])+"%;top:44%;' width='70' src='/pad_marketing/html/img/money.png'><p class='manqi' style='display:none;border:thin solid #5c5c5c;border-radius:5px;padding:0 5px;position:absolute;right:"+(105-age2[age2.length-1])+"%;top:60%;font-size:12px'>满期保障金:"+sumAssured[0]*10+"</p>";
					html+="<div class='divtip'><p style='font-size:12px;position:absolute;bottom:22%;right:8%;'>终身</p>";					
					html+="<p style='position:absolute;left:8%;bottom:22%;font-size:12px'>"+age[0]+"</p>";
					html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
					html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
					html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
					
					$("#echars").after(html);
			
					$("#high").click(function(){
						$("#high").addClass("radio_yes").removeClass("radio_no");
						$("#in").removeClass("radio_yes").addClass("radio_no");
						$("#low").removeClass("radio_yes").addClass("radio_no");				
						var option = myChart.getOption();
						option.series[4].data = incdivH;
					    option.series[5].data = ljxjhlH;
					    myChart.setOption(option,true);  					    
					})		
					$("#low").click(function(){
						$("#low").addClass("radio_yes").removeClass("radio_no");
						$("#in").removeClass("radio_yes").addClass("radio_no");
						$("#high").removeClass("radio_yes").addClass("radio_no");	
						var option = myChart.getOption();
						option.series[4].data=incdivL;		
						option.series[5].data=ljxjhlL;		
						myChart.setOption(option,true);						
					})
					$("#in").click(function(){
						$("#in").addClass("radio_yes").removeClass("radio_no");
						$("#high").removeClass("radio_yes").addClass("radio_no");
						$("#low").removeClass("radio_yes").addClass("radio_no");	
						var option = myChart.getOption();
						option.series[4].data=incdivM;
						option.series[5].data=ljxjhlM;
						myChart.setOption(option,true);	
						
					})	
					break;
					//安康无忧
					case "AKWY01" :
						var html='';
						switch(cover.coverPlan)
						{
						case "1":
							//html+='<div class="open-body order_open_h">';
							html+='<table class="order_interests">';		
							html+='<tr><th>责任项</th><th>计划一</th></tr>';
							html+='<tr><td width="50%">医院范围</td><td>二级以上公立医院（不含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</td></tr>';
							html+='<tr class="bg_blue"><td>总累计限额</td><td class="orange">800000</td></tr>';
							html+='<tr><td>住院、手术及门诊年度总限额</td><td class="orange">200000</td></tr>';
							html+='<tr class="bg_blue"><td>一、住院及手术医疗保险金</td><td></td></tr>';
							html+='<tr><td>免赔额（门诊住院共用）</td><td class="orange">0</td></tr>';
							html+='<tr class="bg_blue2"><td>1 . 住院床位费/重症监护室床位费（含护理费和膳食费） 日限额</td><td class="orange">500</td></tr>';
							html+='<tr><td>2、住院药品费</td><td>全额赔付</td></tr>';
							html += '<tr class="bg_blue2"><td>3、手术费</td><td>全额赔付</td></tr>';
							html += '<tr><td>4、住院医疗杂费 </td><td>全额赔付</td></tr>';
							html += '<tr class="bg_blue2"><td>以上1-4项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
							html += '<tr class="bg_blue"><td>二、门诊</td><td></td></tr>';
							html += '<tr><td>门诊年限额</td><td class="blue">50000</td></tr>';
							html += '<tr class="bg_blue2"><td>1. 住院前后门急诊费（前7天，后30天）</td><td>全额赔付</td></tr>';
							html += '<tr><td>2. 门诊手术费</td><td>全额赔付</td></tr>';
							html += '<tr class="bg_blue2"><td>3. 肾透析，恶性肿瘤电疗或放化疗门诊费</td><td>全额赔付</td></tr>';
							html += '<tr><td>以上1-3项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
							//html += '<tr class="bg_blue"><td>三、恶性肿瘤保险金（一次性给付）</td><td class="blue">200000</td></tr>';
							html += '</table>';
							$("#open5 .open-body").empty()
							$("#open5 .open-body").append(html);
							break;
						case "2":						
							//html+='<div class="open-body order_open_h">';
							html+='<table class="order_interests">'; 
							html+='<tr><th>责任项</th><th>计划二</th></tr>';
							html+='<tr><td width="50%">医院范围</td><td>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</td></tr>';
							html+='<tr class="bg_blue"><td>总累计限额</td><td class="orange">800000</td></tr>';
				            html+='<tr><td>住院、手术及门诊年度总限额</td><td class="orange">200000</td></tr>';
				            html+='<tr class="bg_blue"><td>一、住院及手术医疗保险金</td><td></td></tr>';
				            html+='<tr><td>免赔额（门诊住院共用）</td><td class="orange">0</td></tr>';
				            html+='<tr class="bg_blue2"><td>1 . 住院床位费/重症监护室床位费（含护理费和膳食费） 日限额</td><td class="orange">1000</td></tr>';
				            html+='<tr><td>2、住院药品费</td><td>全额赔付</td></tr>';
				            html+='<tr class="bg_blue2"><td>3、手术费</td><td>全额赔付</td></tr>';
				            html+='<tr><td>4、住院医疗杂费 </td><td>全额赔付</td></tr>';
				            html+='<tr class="bg_blue2"><td>以上1-4项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
				            html+='<tr class="bg_blue"><td>二、门诊</td><td></td></tr>';
				            html+='<tr><td>门诊年限额</td><td class="orange">50000</td></tr>';
				            html+='<tr class="bg_blue2"><td>1. 住院前后门急诊费（前7天，后30天）</td><td>全额赔付</td></tr>';
				            html+='<tr><td>2. 门诊手术费</td><td>全额赔付</td></tr>';
				            html+='<tr class="bg_blue2"><td>3. 肾透析，恶性肿瘤电疗或放化疗门诊费</td><td>全额赔付</td></tr>';
				            html+='<tr><td>以上1-3项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
				            //html+='<tr class="bg_blue"><td>三、恶性肿瘤保险金（一次性给付）</td><td class="orange">200000</td></tr>';
				            html+='</table>';
				            $("#open5 .open-body").empty()
							$("#open5 .open-body").append(html);
							break;
						case "3":
							//html+='<div class="open-body order_open_h">';
							html+='<table class="order_interests">';
					        html+='<tr><th>责任项</th><th>计划三</th></tr>';
					        html+='<tr><td width="50%">医院范围</td><td>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</td></tr>';
					        html+='<tr class="bg_blue"><td>总累计限额</td><td class="orange">1200000</td></tr>';
					        html+='<tr><td>住院、手术及门诊年度总限额</td><td class="orange">300000</td></tr>';
					        html+='<tr class="bg_blue"><td>一、住院及手术医疗保险金</td><td></td></tr>';
					        html+='<tr><td>免赔额（门诊住院共用）</td><td class="orange">0</td></tr>';
					        html+='<tr class="bg_blue2"><td>1、住院床位费/重症监护室床位费（含护理费和膳食费） 日限额</td><td class="orange">1000</td></tr>';
					        html+='<tr><td>2、住院药品费</td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>3、手术费</td><td>全额赔付</td></tr>';
					        html+='<tr><td>4、住院医疗杂费 </td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>以上1-4项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
					        html+='<tr class="bg_blue"><td>二、门诊</td><td></td></tr>';
					        html+='<tr><td>门诊年限额</td><td>75000</td></tr>';
					        html+='<tr class="bg_blue2"><td>1. 住院前后门急诊费（前7天，后30天）</td><td>全额赔付</td></tr>';
					        html+='<tr><td>2. 门诊手术费</td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>3. 肾透析，恶性肿瘤电疗或放化疗门诊费</td><td>全额赔付</td></tr>';
					        html+='<tr><td>以上1-3项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
					        //html+='<tr class="bg_blue"><td>三、恶性肿瘤保险金（一次性给付）</td><td class="orange">300000</td></tr> ';
					        html+='</table>';
					        $("#open5 .open-body").empty()
							$("#open5 .open-body").append(html);
							break;
						case "4":
							//html+='<div class="open-body order_open_h">';
							html+='<table class="order_interests">';
							html+='<tr><th>责任项</th><th>计划四</th></tr>';
							html+='<tr><td width="50%">医院范围</td><td>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</td></tr>';
							html+='<tr class="bg_blue"><td>总累计限额</td><td class="orange">2000000</td></tr>';
							html+='<tr><td>住院、手术及门诊年度总限额</td><td class="orange">500000</td></tr>';
							html+='<tr class="bg_blue"><td>一、住院及手术医疗保险金</td><td></td></tr>';
					        html+='<tr><td>免赔额（门诊住院共用）</td><td class="orange">0</td></tr>';
					        html+='<tr class="bg_blue2"><td>1 . 住院床位费/重症监护室床位费（含护理费和膳食费） 日限额</td><td class="orange">1000</td></tr>';
					        html+='<tr><td>2、住院药品费</td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>3、手术费</td><td>全额赔付</td></tr>';
					        html+='<tr><td>4、住院医疗杂费 </td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>以上1-4项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
					        html+='<tr class="bg_blue"><td>二、门诊</td><td></td></tr>';
					        html+='<tr><td>门诊年限额</td><td class="orange">125000</td></tr>';
					        html+='<tr class="bg_blue2"><td>1. 住院前后门急诊费（前7天，后30天）</td><td>全额赔付</td></tr>';
					        html+='<tr><td>2. 门诊手术费</td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>3. 肾透析，恶性肿瘤电疗或放化疗门诊费</td><td>全额赔付</td></tr>';
					        html+='<tr><td>以上1-3项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
					        //html+='<tr class="bg_blue"><td>三、恶性肿瘤保险金（一次性给付）</td><td class="orange">500000</td></tr> ';
					        html+='</table>';
					        $("#open5 .open-body").empty()
							$("#open5 .open-body").append(html);
							break;
						case "5":
							//html+='<div class="open-body order_open_h">';
							html+='<table class="order_interests">';
							html+='<tr><th>责任项</th><th>计划五</th></tr>';
					        html+='<tr><td width="50%">医院范围</td><td>二级以上公立医院（含特需门诊、特需病房、 外宾病房、干部病房、VIP 病房及国际医疗部病房）</td></tr>';
					        html+='<tr class="bg_blue"><td>总累计限额</td><td class="orange">3200000</td></tr>';
					        html+='<tr><td>住院、手术及门诊年度总限额</td><td class="orange">800000</td></tr>';
					        html+='<tr class="bg_blue"><td>一、住院及手术医疗保险金</td><td></td></tr>';
					        html+='<tr><td>免赔额（门诊住院共用）</td><td class="orange">0</td></tr>';
					        html+='<tr class="bg_blue2"><td>1 . 住院床位费/重症监护室床位费（含护理费和膳食费） 日限额</td><td class="orange">1000</td></tr>';
					        html+='<tr><td>2、住院药品费</td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>3、手术费</td><td>全额赔付</td></tr>';
					        html+='<tr><td>4、住院医疗杂费 </td><td>全额赔付</td></tr>';
					        html+='<tr class="bg_blue2"><td>以上1-4项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
					        html+='<tr class="bg_blue"><td>二、门诊</td><td></td></tr>';
					        html+='<tr><td>门诊年限额</td><td class="orange">200000</td></tr>';
					        html+='<tr><td class="bg_blue2">1. 住院前后门急诊费（前7天，后30天）</td><td>全额赔付</td></tr>';
					        html+='<tr><td>2. 门诊手术费</td><td>全额赔付</td></tr>';
					        html+='<tr><td class="bg_blue2">3. 肾透析，恶性肿瘤电疗或放化疗门诊费</td><td>全额赔付</td></tr>';
					        html+='<tr><td>以上1-3项赔付比例 </td><td>100%（有社保）/80% （无社保）*</td></tr>';
					        //html+='<tr class="bg_blue"><td>三、恶性肿瘤保险金（一次性给付）</td><td class="orange">800000</td></tr>';
					        html+='</table>';
					        $("#open5 .open-body").empty()
							$("#open5 .open-body").append(html);
							break;
						}									
						break;	
					//逸升优享年金
					case "YSYX01" :
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						for(i=0;i<data.length;i++)
						{
							deathBenefit.push((data[i].deathBenefit).toFixed(2));
							accSurviveBenefit.push((data[i].accSurviveBenefit).toFixed(2));					
						}
						surviveBenefit.length=105-age2[0];
						accSurviveBenefit.length=105-age2[0];
						deathBenefit.length=105-age2[0];
						incdivM.length=105-age2[0];
						incdivL.length=105-age2[0];
						incdivH.length=105-age2[0];
						finDivM.length=105-age2[0];
						finDivL.length=105-age2[0];
						finDivH.length=105-age2[0];
						ljzenjhlM.length=105-age2[0];
						ljzenjhlL.length=105-age2[0];
						ljzenjhlH.length=105-age2[0];
						ljlj.length=105-age2[0];
						
						ljzenjhlM[0]=incdivM[0];
						ljzenjhlL[0]=incdivL[0];
						ljzenjhlH[0]=incdivH[0];
						ljlj[0]=surviveBenefit[0]+0*1.03;
					
						for(var j=1;j<age.length;j++){						
							//累积增额年金红利		
							ljzenjhlM[j]=(parseFloat(incdivM[j])+ljzenjhlM[j-1]*1).toFixed(2);
							ljzenjhlL[j]=(parseFloat(incdivL[j])+ljzenjhlL[j-1]*1).toFixed(2);
							ljzenjhlH[j]=(parseFloat(incdivH[j])+ljzenjhlH[j-1]*1).toFixed(2);
							//累积年金(含累积生息)
							ljlj[j]=(parseFloat(surviveBenefit[j])+ljlj[j-1]*1.03).toFixed(2);
						}
						age3.pop();					
						age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联逸升优享年金保险（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'},},
							    legend: {left:'center',width:"60%",height:"90px",bottom:"9%", 
							    	data:[	       										
											{name:'生存给付',icon:'rect'},
											{name:'累积生存金(含累积生息)',icon:'rect'},
										 	{name:'身故给付',icon:'rect'},
											{name:'增额年金红利',icon:'rect'},
											{name:'累积增额年金红利',icon:'rect'},
											{name:'终了红利',icon:'rect'},							
								    ],			             
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:15,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
								},
							    grid: {
							    	left: '5%',right: '8%',bottom: '20%',top:'25%',containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [
									{name: '生存给付',type: 'line',data: surviveBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}},},
									{name: '累积生存金(含累积生息)',type: 'line',data: ljlj,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}},},
									{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}},},
									{name: '增额年金红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3}},},
							        {name: '累积增额年金红利',type: 'line',data: ljzenjhlM,itemStyle:{normal:{color:'#eae200'}},lineStyle:{normal:{color:'#eae200',width:3}},},
							        {name: '终了红利',type: 'line',data: finDivM,itemStyle:{normal:{color:'#004b98'}},lineStyle:{normal:{color:'#004b98',width:3}},},			        
							    ],
							    animation:false,
							};
						myChart.setOption(option,true);
						var html='';
						html+="<div class='divtip'>";
						html+="<p style='font-size:12px;position:absolute;bottom:22%;right:7%;'>终身</p>";	
						html+="<p style='position:absolute;left:7%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.2%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='position:absolute;left:8%;bottom:22%;font-size:12px'>"+age[0]+"</p>";
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
						
						$("#echars").after(html);
						
						$("#high").click(function(){
							$("#high").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();							
						    option.series[3].data = incdivH;
						    option.series[4].data = ljzenjhlH;
						    option.series[5].data = finDivH;
						    myChart.setOption(option);
						})	
						
						$("#low").click(function(){
							$("#low").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
						    option.series[3].data = incdivL;
						    option.series[4].data = ljzenjhlL;
						    option.series[5].data = finDivL;
						    myChart.setOption(option);    
						})
						$("#in").click(function(){
							$("#in").addClass("radio_yes").removeClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();
						    option.series[3].data = incdivM;
						    option.series[4].data = ljzenjhlM;
						    option.series[5].data = finDivM;
						    myChart.setOption(option);     
						})	
						break;
					//逸升优享教育
					case "YSYXE01" :
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						
						for(i=0;i<data.length;i++)
						{
							deathBenefit.push((data[i].deathBenefit).toFixed(2));
							accSurviveBenefit.push((data[i].accSurviveBenefit).toFixed(2));					
						}
						surviveBenefit.length=105-age2[0];
						deathBenefit.length=105-age2[0];
						incdivL.length=105-age2[0];
						incdivM.length=105-age2[0];
						incdivH.length=105-age2[0];
						finDivM.length=105-age2[0];
						finDivL.length=105-age2[0];
						finDivH.length=105-age2[0];
						ljzenjhlM.length=105-age2[0];
						ljzenjhlL.length=105-age2[0];
						ljzenjhlH.length=105-age2[0];
						
						ljzenjhlM[0]=incdivM[0];
						ljzenjhlL[0]=incdivL[0];
						ljzenjhlH[0]=incdivH[0];
						
					
						for(var j=1;j<age.length;j++){						
							//累积增额年金红利						
							ljzenjhlM[j]=(parseFloat(incdivM[j])+ljzenjhlM[j-1]*1).toFixed(2);
							ljzenjhlL[j]=(parseFloat(incdivL[j])+ljzenjhlL[j-1]*1).toFixed(2);
							ljzenjhlH[j]=(parseFloat(incdivH[j])+ljzenjhlH[j-1]*1).toFixed(2);											
						}
						age3.pop();					
						age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联逸升优享教育金两全保险（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
							    legend: {left:'center',width:"70%",height:"90px",bottom:"9%", 
							    	data:[	       										
											{name:'生存给付',icon:'rect'},
											{name:'身故保险金',icon:'rect'},
											{name:'增额红利',icon:'rect'},
											{name:'累积增额年金红利',icon:'rect'},
											{name:'终了红利',icon:'rect'},							
								    ],			             
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:5,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
							    },
							    grid: {
							    	left: '6%',right: '8%',bottom: '15%',top:"25%",containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [
									{name: '生存给付',type: 'line',data: surviveBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}}},
									{name: '身故保险金',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}}},
									{name: '增额红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}}},
							        {name: '累积增额年金红利',type: 'line',data: ljzenjhlM,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3}}},
							        {name: '终了红利',type: 'line',data: finDivM,itemStyle:{normal:{color:'#eae200'}},lineStyle:{normal:{color:'#eae200',width:3}}},			        
							    ],
							    animation:false,
							};
						myChart.setOption(option,true);
						
						var html='';
						html+="<div class='divtip'><p class='manqi' style='display:none;position:absolute;font-size:12px;top:36%;right:4%;border:thin solid rgb(160,160,160);padding:5px;border-radius:5px'>2000</p>";
						html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";	
						html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='position:absolute;left:8%;bottom:18%;font-size:12px'>"+age[0]+"</p>";
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
						
						$("#echars").after(html);
						
						$("#high").click(function(){
							$("#high").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();
						    option.series[2].data=incdivH;			
						    option.series[3].data=ljzenjhlH;
							option.series[4].data=finDivH;		
							myChart.setOption(option);			
						})		
						$("#low").click(function(){
							$("#low").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
						    option.series[2].data=incdivL;			
						    option.series[3].data=ljzenjhlL;
							option.series[4].data=finDivL;		
							myChart.setOption(option);				
						})
						$("#in").click(function(){
							$("#in").addClass("radio_yes").removeClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
							option.series[2].data=incdivM;			
							option.series[3].data=ljzenjhlM;
							option.series[4].data=finDivM;		
							myChart.setOption(option);				
						})	
						break;
					//成长有约
					case "CZYY01" :
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						
						//console.log(data)
						for(i=0;i<data.length;i++)
						{
							deathBenefit.push((data[i].deathBenefit).toFixed(2));										
						}
						surviveBenefit.length=105-age2[0];
						deathBenefit.length=105-age2[0];
						incdivM.length=105-age2[0];
						incdivH.length=105-age2[0];
						incdivL.length=105-age2[0];
						cashValue.length=105-age2[0];
						cashValueH.length=105-age2[0];
						cashValueL.length=105-age2[0];
						ljxjhlM.length=105-age2[0];
						ljxjhlL.length=105-age2[0];
						ljxjhlH.length=105-age2[0];
						
						ljxjhlM[0]=	incdivM[0]+0*1.03;
						ljxjhlL[0]=	incdivL[0]+0*1.03;
						ljxjhlH[0]=	incdivH[0]+0*1.03;
						for(var j=1;j<age2.length;j++){						
							//累计现金红利
							ljxjhlM[j]=(parseFloat(incdivM[j])+ljxjhlM[j-1]*1.03).toFixed(2);
							ljxjhlL[j]=(parseFloat(incdivL[j])+ljxjhlL[j-1]*1.03).toFixed(2); 
							ljxjhlH[j]=(parseFloat(incdivH[j])+ljxjhlH[j-1]*1.03).toFixed(2);					
						}
						age3.pop();					
						age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
						
						var myChart = echarts.init(document.getElementById('echars'));
						
						option = {
							    title: {text: '安联成长有约教育金两全保险（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
							    legend: {left:'center',width:"60%",height:"90px",bottom:"10%", 
								    data:[	       												
											{name:'生存给付',icon:'rect'},
											{name:'身故保险金',icon:'rect'},									
											{name:'当年度现金红利',icon:'rect'},
											{name:'累积现金红利',icon:'rect'},
									    ],
								},
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
							    },
							    grid: {
							    	left: '6%',right: '8%',bottom: '15%',top:"25%",containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [
									{name: '生存给付',type: 'line',data: surviveBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3,}}},
									{name:'身故保险金',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3,}}},		
							        {name: '当年度现金红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3,}}},
							        {name: '累积现金红利',type: 'line',data: ljxjhlM,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3,}}},
							    ],
							    animation:false,						   
							};
						
						myChart.setOption(option,true);
						
						var html='';
						html+="<div class='divtip'><p class='manqi' style='display:none;position:absolute;font-size:12px;top:36%;right:4%;border:thin solid rgb(160,160,160);padding:5px;border-radius:5px'>2000</p>";
						html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";	
						html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='position:absolute;left:9%;bottom:18%;font-size:12px'>"+age[0]+"</p>";
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
						   
						$("#echars").after(html);
						
						
						$("#high").click(function(){
							$("#high").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();
							option.series[2].data=incdivH;
							option.series[3].data=ljxjhlH;
							myChart.setOption(option);
						})		
						
						$("#low").click(function(){
							$("#low").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
							option.series[2].data=incdivL;		
							option.series[3].data=ljxjhlL;								
							myChart.setOption(option);
							
							
						})
						$("#in").click(function(){
							$("#in").addClass("radio_yes").removeClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
							option.series[2].data=incdivM;
							option.series[3].data=ljxjhlM;
							myChart.setOption(option);
						})							
						break;
					//安享金生
					case "AXJS01" :	
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						
						for(i=0;i<data.length;i++)
						{
							deathBenefit.push((data[i].deathBenefit).toFixed(2));										
						}
						ljxjhlM[0]=	incdivM[0]+0*1.03;
						ljxjhlL[0]=	incdivL[0]+0*1.03;
						ljxjhlH[0]=	incdivH[0]+0*1.03;
						ljlj[0]=surviveBenefit[0]+0*1.03;
						
						for(var j=1;j<age.length;j++){
							//累计现金红利
							ljxjhlM[j]=(parseFloat(incdivM[j])+ljxjhlM[j-1]*1.03).toFixed(2);
							ljxjhlL[j]=(parseFloat(incdivL[j])+ljxjhlL[j-1]*1.03).toFixed(2);
							ljxjhlH[j]=(parseFloat(incdivH[j])+ljxjhlH[j-1]*1.03).toFixed(2);
							//累积年金(含累积生息)
							ljlj[j]=(parseFloat(surviveBenefit[j])+ljlj[j-1]*1.03).toFixed(2);	
						}
						
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联安享金生终身年金保险（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
							    legend: {left:'center',width:"60%",height:"90px",bottom:'10%', 
							    	data:[	       										
											{name:'身故给付',icon:'rect'},
											{name:'年金给付',icon:'rect'},
											{name:'累积年金(含累积生息)',icon:'rect'},
											{name:'当年度现金红利',icon:'rect'},
											{name:'累积现金红利',icon:'rect'},							
								    ],			             
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{show:false},data: age,
							    },
							    grid: {
							    	left: '6%',right: '8%',bottom: '20%',top:'25%',containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [
									{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3,}}},
									{name: '年金给付',type: 'line',data: surviveBenefit,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3,}}},
									{name: '累积年金(含累积生息)',type: 'line',data: ljlj,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3,}}},
							        {name: '当年度现金红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3,}}},
							        {name: '累积现金红利',type: 'line',data: ljxjhlM,itemStyle:{normal:{color:'#eae200'}},lineStyle:{normal:{color:'#eae200',width:3,}}},			        
							    ],
							    animation:false,
							};
						
						myChart.setOption(option,true);
						
						var html='';
						html+="<div class='divtip'><p class='manqi' style='display:none;position:absolute;font-size:12px;top:36%;right:4%;border:thin solid rgb(160,160,160);padding:5px;border-radius:5px'>2000</p>";
						html+="<p style='font-size:12px;position:absolute;bottom:22%;left:10%;'>"+age[0]+"</p>";
						html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='font-size:12px;position:absolute;bottom:22%;right:8%;'>终身</p>";		
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
					    				
						$("#echars").after(html);
						
							$("#high").click(function(){
								$("#high").addClass("radio_yes").removeClass("radio_no");
								$("#in").removeClass("radio_yes").addClass("radio_no");
								$("#low").removeClass("radio_yes").addClass("radio_no");
								var option = myChart.getOption();
								option.series[3].data=incdivH;
								option.series[4].data=ljxjhlH;
								myChart.setOption(option);
							})		
							$("#low").click(function(){
								$("#low").addClass("radio_yes").removeClass("radio_no");
								$("#in").removeClass("radio_yes").addClass("radio_no");
								$("#high").removeClass("radio_yes").addClass("radio_no");	
								var option = myChart.getOption();
								option.series[3].data=incdivL;		
								option.series[4].data=ljxjhlL;		
								myChart.setOption(option);			
							})
							$("#in").click(function(){
								$("#in").addClass("radio_yes").removeClass("radio_no");
								$("#in").removeClass("radio_yes").addClass("radio_no");
								$("#high").removeClass("radio_yes").addClass("radio_no");	
								var option = myChart.getOption();
								option.series[3].data=incdivM;
								option.series[4].data=ljxjhlM;
								myChart.setOption(option);			
							})	
						break;
					//超级随心年金
					case "CJSXUL01" :	
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						
						for(i=0;i<data.length;i++)
						{
							deathBenefit.push(data[i].deathBenefit);
							accSurviveBenefit.push(data[i].accSurviveBenefit);
							accountValueL.push((data[i].accountValueLow).toFixed(2));
							accountValueM.push((data[i].accountValueMid).toFixed(2));
							accountValueH.push((data[i].accountValueHigh).toFixed(2));
						}
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联超级随心年金保险(投资连结型)',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
							    legend: {left:'center',width:"60%",height:"90px",bottom:'10%', 
							    	data:[	       										
											{name:'身故给付',icon:'rect'},
											{name:'全残给付',icon:'rect'},
											{name:'账户价值',icon:'rect'},										
								    ],			             
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{show:false},data: age,
							    },
							    grid: {
							    	left: '6%',right: '8%',bottom: '15%',top:'25%',containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [
									{name: '身故给付',type: 'line',data: deathM,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3,}}},
									{name: '全残给付',type: 'line',data: deathM,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3,}}},
									{name: '账户价值',type: 'line',data: accountValueM,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3,}}},
							            
							    ],
							    animation:false,
							};
						
						myChart.setOption(option,true);
						
						var html='';
						html+="<div class='divtip'><p class='manqi' style='display:none;position:absolute;font-size:12px;top:36%;right:4%;border:thin solid rgb(160,160,160);padding:5px;border-radius:5px'>2000</p>";
						html+="<p style='font-size:12px;position:absolute;bottom:18%;left:10%;'>"+age[0]+"</p>";
						html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='width:75%;position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本账户价值演示图所描述的净投资回报率是假设的，且保险利益演示是基于本公司的投资收益假设，仅供您投保时分析参考，不代表本公司的历史经营业绩，也不能理解为对未来的预期，实际投资收益可能出现负值</p>"
						html+="<p style='font-size:12px;position:absolute;bottom:18%;right:8%;'>终身</p>";		
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
				    
						$("#echars").after(html);
						
							$("#high").click(function(){
								$("#high").addClass("radio_yes").removeClass("radio_no");
								$("#in").removeClass("radio_yes").addClass("radio_no");
								$("#low").removeClass("radio_yes").addClass("radio_no");
								var option = myChart.getOption();
								option.series[0].data=deathH;
								option.series[1].data=deathH;
								option.series[2].data=accountValueH;
								myChart.setOption(option);
							})		
							$("#low").click(function(){
								$("#low").addClass("radio_yes").removeClass("radio_no");
								$("#in").removeClass("radio_yes").addClass("radio_no");
								$("#high").removeClass("radio_yes").addClass("radio_no");
								var option = myChart.getOption();
								option.series[0].data=deathL;
								option.series[1].data=deathL;
								option.series[2].data=accountValueL;
								myChart.setOption(option);			
							})
							$("#in").click(function(){
								$("#in").addClass("radio_yes").removeClass("radio_no");
								$("#high").removeClass("radio_yes").addClass("radio_no");
								$("#low").removeClass("radio_yes").addClass("radio_no");
								var option = myChart.getOption();
								option.series[0].data=deathM;
								option.series[1].data=deathM;
								option.series[2].data=accountValueM;
								myChart.setOption(option);			
							})
						break;
					//逸升优享教育2
					case "YSYXE02":
						
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						for(i=0;i<data.length;i++)
						{
							deathBenefit.push((data[i].deathBenefit).toFixed(2));
							accSurviveBenefit.push((data[i].accSurviveBenefit).toFixed(2));					
						}
						surviveBenefit.length=105-age2[0];
						
						incdivL.length=105-age2[0];
						incdivM.length=105-age2[0];
						incdivH.length=105-age2[0];
						finDivM.length=105-age2[0];
						finDivL.length=105-age2[0];
						finDivH.length=105-age2[0];
						ljzenjhlM.length=105-age2[0];
						ljzenjhlL.length=105-age2[0];
						ljzenjhlH.length=105-age2[0];
						ljlj.length=105-age2[0];
						
						ljzenjhlM[0]=incdivM[0];
						ljzenjhlL[0]=incdivL[0];
						ljzenjhlH[0]=incdivH[0];
						ljlj[0]=surviveBenefit[0]+0*1.03;
						
						
					
						for(var j=1;j<age.length;j++){						
							//累积增额年金红利						
							ljzenjhlM[j]=(parseFloat(incdivM[j])+ljzenjhlM[j-1]*1).toFixed(2);
							ljzenjhlL[j]=(parseFloat(incdivL[j])+ljzenjhlL[j-1]*1).toFixed(2);
							ljzenjhlH[j]=(parseFloat(incdivH[j])+ljzenjhlH[j-1]*1).toFixed(2);	
							//累积年金(含累积生息)
							ljlj[j]=(parseFloat(surviveBenefit[j])+ljlj[j-1]*1.03).toFixed(2);
						}
						age3.pop();					
						age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联逸升优享教育金两全保险2（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'}},
							    legend: {left:'center',width:"70%",height:"90px",bottom:"7%", 
							    	data:[	       										
											{name:'年金给付',icon:'rect'},
											{name:'累积年金给付',icon:'rect'},
											{name:'身故给付',icon:'rect'},
											{name:'增额红利',icon:'rect'},
											{name:'累积增额红利',icon:'rect'},
											{name:'终了红利',icon:'rect'},				
								    ],			             
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:5,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
							    },
							    grid: {
							    	left: '6%',right: '8%',bottom: '20%',top:"25%",containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [
							        {name: '年金给付',type: 'line',data: surviveBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}}},   
									{name: '累积年金给付',type: 'line',data: ljlj,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}}},
									{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}}},
									{name: '增额红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3}}},
							        {name: '累积增额红利',type: 'line',data: ljzenjhlM,itemStyle:{normal:{color:'#eae200'}},lineStyle:{normal:{color:'#eae200',width:3}}},
							        {name: '终了红利',type: 'line',data: finDivM,itemStyle:{normal:{color:'#004b98'}},lineStyle:{normal:{color:'#004b98',width:3}}},
							    ],
							    animation:false,
							};
						myChart.setOption(option,true);
						
						var html='';
						html+="<div class='divtip'><p class='manqi' style='display:none;position:absolute;font-size:12px;top:36%;right:4%;border:thin solid rgb(160,160,160);padding:5px;border-radius:5px'>2000</p>";
						html+="<p style='font-size:12px;position:absolute;bottom:22%;right:8%;'>终身</p>";	
						html+="<p style='position:absolute;left:7.5%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.8%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='position:absolute;left:8%;bottom:22%;font-size:12px'>"+age[0]+"</p>";
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
						
						$("#echars").after(html);
						
						$("#high").click(function(){
							$("#high").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();
						    option.series[3].data=incdivH;			
						    option.series[4].data=ljzenjhlH;
							option.series[5].data=finDivH;		
							myChart.setOption(option);			
						})		
						$("#low").click(function(){
							$("#low").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
						    option.series[3].data=incdivL;			
						    option.series[4].data=ljzenjhlL;
							option.series[5].data=finDivL;
							myChart.setOption(option);				
						})
						$("#in").click(function(){
							$("#in").addClass("radio_yes").removeClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
							option.series[3].data=incdivM;			
							option.series[4].data=ljzenjhlM;
							option.series[5].data=finDivM;		
							myChart.setOption(option);				
						})	
						break;
					//安联安享丰年年金保险（分红型）
					case "AXFN01":
						
						var cash=[];
						var annuity=[];
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						for(i=0;i<data.length;i++)
						{
							accSurviveBenefit.push((data[i].accSurviveBenefit).toFixed(2));	
							deathBenefit.push((data[i].deathBenefit).toFixed(2));
							cash.push(data[i].cashValue.toFixed(2));
							annuity.push(data[i].annuity.toFixed(2));
						}
						annuity.length=105-age2[0]+1;
						deathBenefit.length=105-age2[0]+1;
						accSurviveBenefit.length=105-age2[0]+1;
						cash.length=105-age2[0]+1;
						incdivM.length=105-age2[0]+1;
						incdivL.length=105-age2[0]+1;
						incdivH.length=105-age2[0]+1;
						finDivM.length=105-age2[0]+1;
						finDivL.length=105-age2[0]+1;
						finDivH.length=105-age2[0]+1;
						/*ljzenjhlM.length=105-age2[0]+1;
						ljzenjhlL.length=105-age2[0]+1;
						ljzenjhlH.length=105-age2[0]+1;*/
						
						ljzenjhlM[0]=incdivM[0]+0*1.03;
						ljzenjhlL[0]=incdivL[0]+0*1.03;
						ljzenjhlH[0]=incdivH[0]+0*1.03;
						for(var j=1;j<age2.length;j++){						
							//累积增额年金红利
							ljzenjhlM[j]=(parseFloat(incdivM[j])+ljzenjhlM[j-1]*1).toFixed(2);
							ljzenjhlL[j]=(parseFloat(incdivL[j])+ljzenjhlL[j-1]*1).toFixed(2);
							ljzenjhlH[j]=(parseFloat(incdivH[j])+ljzenjhlH[j-1]*1).toFixed(2);
						}	
						ljzenjhlM[ljzenjhlM.length-1]=0;
						ljzenjhlL[ljzenjhlM.length-1]=0;
						ljzenjhlH[ljzenjhlM.length-1]=0;
						age3.pop();					
						age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联安享丰年年金保险（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'},},
							    legend: {left:'center',width:"60%",height:"90px",bottom:"9%", 
							    	data:[	 
							    	      	{name:'生存给付',icon:'rect'},
							    	      	{name:'累积生存金(含累积生息)',icon:'rect'},
							    	      	{name:'身故给付',icon:'rect'},
											{name:'现金价值',icon:'rect'},
											{name:'增额年金红利',icon:'rect'},
											{name:'累计增额年金红利',icon:'rect'},
											{name:'终了红利',icon:'rect'},
										 	
									],
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:15,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
								},
							    grid: {
							    	left: '5%',right: '8%',bottom: '20%',top:'25%',containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [//#019be1  #ff5400  #66be1e  #f3313c #eae200  #004b98
									{name: '生存给付',type: 'line',data: annuity,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}},},
									{name: '累积生存金(含累积生息)',type: 'line',data: accSurviveBenefit,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}},},
									{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}},},
									{name: '现金价值',type: 'line',data: cash,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3}},},
									{name: '增额年金红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#eae200'}},lineStyle:{normal:{color:'#eae200',width:3}},},
									{name: '累计增额年金红利',type: 'line',data: ljzenjhlM,itemStyle:{normal:{color:'#004b98'}},lineStyle:{normal:{color:'#004b98',width:3}},},
									{name: '终了红利',type: 'line',data: finDivM,itemStyle:{normal:{color:'#ff00d2'}},lineStyle:{normal:{color:'#ff00d2',width:3}},},
								],
							    animation:false,
							};
						myChart.setOption(option,true);
						var html='';
						html+="<div class='divtip'>";
						html+="<p style='font-size:12px;position:absolute;bottom:22%;right:7%;'>终身</p>";	
						html+="<p style='position:absolute;left:7%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.2%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='position:absolute;left:8%;bottom:22%;font-size:12px'>"+age[0]+"</p>";
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
						
						$("#echars").after(html);
						
						$("#high").click(function(){
							$("#high").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();							
						    option.series[4].data = incdivH;
						    option.series[5].data = ljzenjhlH;
						    option.series[6].data = finDivH;
						    myChart.setOption(option);
						})	
						
						$("#low").click(function(){
							$("#low").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
							option.series[4].data = incdivL;
							option.series[5].data = ljzenjhlL;
						    option.series[6].data = finDivL;
						    myChart.setOption(option);    
						})
						$("#in").click(function(){
							$("#in").addClass("radio_yes").removeClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();
							option.series[4].data = incdivM;
							option.series[5].data = ljzenjhlM;
						    option.series[6].data = finDivM;
						    myChart.setOption(option);     
						})	
						break;
					//安联逸升汇赢终身年金保险（分红型）
					case "YSHY01":
						var cash=[];
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						for(i=0;i<data.length;i++)
						{
							accSurviveBenefit.push((data[i].accSurviveBenefit).toFixed(2));	
							deathBenefit.push((data[i].deathBenefit).toFixed(2));
							cash.push(data[i].cashValue.toFixed(2));
						}
						deathBenefit.length=105-age2[0]+1;
						accSurviveBenefit.length=105-age2[0]+1;
						cash.length=105-age2[0]+1;
						incdivM.length=105-age2[0]+1;
						incdivL.length=105-age2[0]+1;
						incdivH.length=105-age2[0]+1;
						ljzenjhlM.length=105-age2[0]+1;
						ljzenjhlL.length=105-age2[0]+1;
						ljzenjhlH.length=105-age2[0]+1;
						ljlj.length=105-age2[0]+1;
						ljzenjhlM[0]=incdivM[0]+0*1.03;
						ljzenjhlL[0]=incdivL[0]+0*1.03;
						ljzenjhlH[0]=incdivH[0]+0*1.03;
						ljlj[0]=surviveBenefit[0]+0*1.03;
						
						for(var j=1;j<age2.length;j++){						
							//累计现金红利
							ljzenjhlM[j]=(parseFloat(incdivM[j])+ljzenjhlM[j-1]*1.03).toFixed(2);
							ljzenjhlL[j]=(parseFloat(incdivL[j])+ljzenjhlL[j-1]*1.03).toFixed(2); 
							ljzenjhlH[j]=(parseFloat(incdivH[j])+ljzenjhlH[j-1]*1.03).toFixed(2);
							//累积生存金(含累积生息)
							ljlj[j]=(parseFloat(surviveBenefit[j])+ljlj[j-1]*1.03).toFixed(2);
						}						
						age3.pop();					
						age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联逸升汇赢终身年金保险（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'},},
							    legend: {left:'center',width:"60%",height:"90px",bottom:"9%", 
							    	data:[	 
							    	      	{name:'生存给付',icon:'rect'},
							    	      	{name:'累积生存金(含累积生息)',icon:'rect'},
							    	      	{name:'身故给付',icon:'rect'},
											{name:'现金价值',icon:'rect'},
											{name:'当年度红利',icon:'rect'},
										 	{name:'增额现金红利',icon:'rect'},
									],
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:15,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
								},
							    grid: {
							    	left: '5%',right: '8%',bottom: '20%',top:'25%',containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [//#019be1  #ff5400  #66be1e  #f3313c #eae200  #004b98
									{name: '生存给付',type: 'line',data: surviveBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}},},
									{name: '累积生存金(含累积生息)',type: 'line',data: ljlj,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}},},
									{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}},},
									{name: '现金价值',type: 'line',data: cash,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3}},},
									{name: '当年度红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#eae200'}},lineStyle:{normal:{color:'#eae200',width:3}},},
									{name: '增额年金红利',type: 'line',data: ljzenjhlM,itemStyle:{normal:{color:'#004b98'}},lineStyle:{normal:{color:'#004b98',width:3}},}
							     ],
							    animation:false,
							};
						myChart.setOption(option,true);
						var html='';
						html+="<div class='divtip'>";
						html+="<p style='font-size:12px;position:absolute;bottom:22%;right:7%;'>终身</p>";	
						html+="<p style='position:absolute;left:7%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.2%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='position:absolute;left:8%;bottom:22%;font-size:12px'>"+age[0]+"</p>";
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
						
						$("#echars").after(html);
						
						$("#high").click(function(){
							$("#high").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();							
						    option.series[4].data = incdivH;
						    option.series[5].data = ljzenjhlH;
						    myChart.setOption(option);
						})	
						
						$("#low").click(function(){
							$("#low").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
						    option.series[4].data = incdivL;
						    option.series[5].data = ljzenjhlL;
						    myChart.setOption(option);    
						})
						$("#in").click(function(){
							$("#in").addClass("radio_yes").removeClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();
						    option.series[4].data = incdivM;
						    option.series[5].data = ljzenjhlM;
						    myChart.setOption(option);     
						})	
						break;
					//安联安顺汇福终身寿险（分红型）
					case "ASHF01":
						var cash=[];
						$("#open5 .open-body").empty()
						$("#open5 .open-body").append('<div id="echars" style="width:100%;height:450px"></div>');
						for(i=0;i<data.length;i++)
						{
							deathBenefit.push((data[i].deathBenefit).toFixed(2));
							cash.push(data[i].cashValue.toFixed(2));
						}
						
						deathBenefit.length=105-age2[0]+1;
						cash.length=105-age2[0]+1;
						incdivM.length=105-age2[0]+1;
						incdivL.length=105-age2[0]+1;
						incdivH.length=105-age2[0]+1;
						ljzenjhlM.length=105-age2[0]+1;
						ljzenjhlL.length=105-age2[0]+1;
						ljzenjhlH.length=105-age2[0]+1;
						ljzenjhlM[0]=incdivM[0]+0*1.03;
						ljzenjhlL[0]=incdivL[0]+0*1.03;
						ljzenjhlH[0]=incdivH[0]+0*1.03;
						for(var j=1;j<age2.length;j++){						
							//累计现金红利
							ljzenjhlM[j]=(parseFloat(incdivM[j])+ljzenjhlM[j-1]*1.03).toFixed(2);
							ljzenjhlL[j]=(parseFloat(incdivL[j])+ljzenjhlL[j-1]*1.03).toFixed(2); 
							ljzenjhlH[j]=(parseFloat(incdivH[j])+ljzenjhlH[j-1]*1.03).toFixed(2);						
						}						
						age3.pop();					
						age3.push({value:age2[age2.length-1],textStyle:{color:"#5c5c5c",}});	
						var myChart = echarts.init(document.getElementById('echars'));
						option = {
							    title: {text: '安联安顺汇福终身寿险（分红型）',left: 'center'},
							    tooltip: {trigger: 'axis',backgroundColor:'rgb(2255,255,255)',borderWidth:1,textStyle:{color:'#5c5c5c'},},
							    legend: {left:'center',width:"60%",height:"90px",bottom:"9%", 
							    	data:[	  
							    	      	{name:'身故给付',icon:'rect'},
											{name:'现金价值',icon:'rect'},
											{name:'当年度红利',icon:'rect'},
										 	{name:'增额年金红利',icon:'rect'},
									],			             
							    },
							    xAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2}},type: 'category',nameGap:15,name: '',nameLocation:"start",splitLine: {show: false},boundaryGap : false,axisTick:{show:false},axisLabel:{interval:age2.length-2,show:true,textStyle:{color:"#fff",fontSize:'12px'}},data:age3,
								},
							    grid: {
							    	left: '5%',right: '8%',bottom: '20%',top:'25%',containLabel: true
							    },
							    yAxis: {
							    	axisLine:{lineStyle:{color:"#C5C5C5",width:2},textStyle:{color:"#5c5c5c"}},axisLabel:{textStyle:{color:"#5c5c5c"}},type:'value',name: '人民币(元)',nameTextStyle:{color:'#5c5c5c'},data:[],splitLine: {show: false},axisTick:{show:false},
							    },
							    series: [
									{name: '身故给付',type: 'line',data: deathBenefit,itemStyle:{normal:{color:'#019be1'}},lineStyle:{normal:{color:'#019be1',width:3}},},
									{name: '现金价值',type: 'line',data: cash,itemStyle:{normal:{color:'#ff5400'}},lineStyle:{normal:{color:'#ff5400',width:3}},},
									{name: '当年度红利',type: 'line',data: incdivM,itemStyle:{normal:{color:'#66be1e'}},lineStyle:{normal:{color:'#66be1e',width:3}},},
									{name: '增额年金红利',type: 'line',data: ljzenjhlM,itemStyle:{normal:{color:'#f3313c'}},lineStyle:{normal:{color:'#f3313c',width:3}},},
							     ],
							    animation:false,
							};
						myChart.setOption(option,true);
						var html='';
						html+="<div class='divtip'>";
						html+="<p style='font-size:12px;position:absolute;bottom:22%;right:7%;'>终身</p>";	
						html+="<p style='position:absolute;left:7%;top:19%;font-size:12px;color:#9a9a9a'>温馨提示：1.拖动手指可查看具体的利益演示数据</p>";
						html+="<p style='position:absolute;left:14.2%;top:22%;font-size:12px;color:#9a9a9a'>2.本产品为分红保险，其红利分配是不确定的</p>"
						html+="<p style='position:absolute;left:8%;bottom:22%;font-size:12px'>"+age[0]+"</p>";
						html+="<div class='echarbtn' style='width:100%;text-align: center;position:absolute;bottom:2%'><span class='radio_blo'><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='high'>高</span><span class='radio_yes margin-left-25' style='height:34px;padding:7px 12px' id='in'>中</span><span class='radio_no margin-left-25' style='height:34px;padding:7px 12px' id='low'>低</span></span></div></div>";
						
						$("#echars").after(html);
						
						$("#high").click(function(){
							$("#high").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();							
						    option.series[2].data = incdivH;
						    option.series[3].data = ljzenjhlH;
						    myChart.setOption(option);
						})	
						
						$("#low").click(function(){
							$("#low").addClass("radio_yes").removeClass("radio_no");
							$("#in").removeClass("radio_yes").addClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");	
							var option = myChart.getOption();
						    option.series[2].data = incdivL;
						    option.series[3].data = ljzenjhlL;
						    myChart.setOption(option);    
						})
						$("#in").click(function(){
							$("#in").addClass("radio_yes").removeClass("radio_no");
							$("#high").removeClass("radio_yes").addClass("radio_no");
							$("#low").removeClass("radio_yes").addClass("radio_no");
							var option = myChart.getOption();
						    option.series[2].data = incdivM;
						    option.series[3].data = ljzenjhlM;
						    myChart.setOption(option);     
						})	
						break;
				}		
//			})			
		},
		function(data){
			
		},
		true,//是否异步
		true,//是否显示加载电波图
		'利益演示图正在加载中。。。'//电波图中的话术
)
}
}

}

